-- GENERATED SPELL FOR [Frostpaw Trapper] --


function spell0_26434(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(30614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26434', 3000, 1)
end

function spell1_26434(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26434', 567, 1)
end

function spell2_26434(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(32908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26434', 10251, 1)
end

function Sorts_26434(pUnit, Event)
local choix_sorts_26434 = math.random(0, 2)
if choix_sorts_26434 == 0 then
pUnit:RegisterEvent('spell0_26434', 1, 1)
end
if choix_sorts_26434 == 1 then
pUnit:RegisterEvent('spell1_26434', 1, 1)
end
if choix_sorts_26434 == 2 then
pUnit:RegisterEvent('spell2_26434', 1, 1)
end
end

function mob26434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26434', math.random(1500, 3000), 1)
end

function mob26434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26434, 1, 'mob26434_Action')
RegisterUnitEvent(26434, 2, 'mob26434_Leave')
RegisterUnitEvent(26434, 3, 'mob26434_Kill')
RegisterUnitEvent(26434, 4, 'mob26434_Die')
